package com.edisoncgh.service.impl;


import com.edisoncgh.mapper.UsersMapper;
import com.edisoncgh.pojo.Users;
import com.edisoncgh.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UsersServiceImpl implements UsersService {
    @Autowired
    private UsersMapper admin;

    @Override
    public Users getById(String id) {
        return admin.selectByPrimaryKey(id);
    }

    public UsersMapper getAdmin() {
        return admin;
    }

    public void setAdmin(UsersMapper admin) {
        this.admin = admin;
    }
}
